package model.route;

import java.io.Serializable;

import model.info.Coordinate;
import model.mapping.MapPoint;

public class Step implements Serializable {

	private Coordinate origen;
	private Coordinate fin;
	private String instruccion;
	private MapPoint originPoint;
	private MapPoint finishPoint;
	
	public Step(Coordinate start,Coordinate stop,String instruction,
			MapPoint info1,MapPoint info2) {
		
		origen = start;
		fin = stop;
		instruccion = instruction;
		originPoint = info1;
		finishPoint = info2;
	}

	public Coordinate getOrigen() {
		return origen;
	}

	public void setOrigen(Coordinate origen) {
		this.origen = origen;
	}

	public Coordinate getFin() {
		return fin;
	}

	public void setFin(Coordinate fin) {
		this.fin = fin;
	}

	public String getInstruccion() {
		return instruccion;
	}

	public void setInstruccion(String instruccion) {
		this.instruccion = instruccion;
	}

	public MapPoint getOriginPoint() {
		return originPoint;
	}

	public void setOriginPoint(MapPoint originPoint) {
		this.originPoint = originPoint;
	}

	public MapPoint getFinishPoint() {
		return finishPoint;
	}

	public void setFinishPoint(MapPoint finishPoint) {
		this.finishPoint = finishPoint;
	}

	public String toString() {
		
		return "Origen: "+origen.toString()+" Destino: "+fin.toString()+" Instruccion: "+instruccion +
		" Puntos: "+originPoint.x+","+originPoint.y+":"+finishPoint.x+","+finishPoint.y; 
	}
}
